package com.hsnn.medstgmini.base.std.dao;


import java.io.OutputStream;
import java.util.List;
import java.util.Map;

import com.hsnn.medstgmini.base.std.model.StdCompgroup;
import com.hsnn.medstgmini.base.std.model.StdCompgroupLog;
import com.hsnn.medstgmini.base.std.model.StdCompinfo;
import com.hsnn.medstgmini.model.Result;
import com.hsnn.medstgmini.util.Pagination;

@SuppressWarnings("deprecation")
public interface StdCompgroupDao {

	Pagination queryStdCompinfoList( Pagination page,StdCompgroup stdCompgroup);
	List<Map<String,Object>> getDicDrugformLogDetail(Pagination page);
	int batchStarts(StdCompgroup instance);
	void writeLog(StdCompgroup instance);
	/**
	 * 集团库 维护记录查询所有及条件查询
	 * @param stdCompinfoLog
	 * @return
	 */
	List<Map<String,Object>> queryStdCompinfoLogByName(Pagination page,StdCompgroupLog stdCompgroupLog);

	public void add(StdCompgroup transientInstance);


	public StdCompgroup getById(java.lang.String id);

	public List<StdCompgroup> getAll();

	

	public void attachDirty(StdCompgroup instance);

	

	public void update(StdCompgroup sht);
	
	public void log(StdCompgroup sht);

	public List<StdCompgroupLog> getLogByResult(Result result, String tid, String startTime, String endTime);

	public Long getSizeByResult(StdCompgroup instance);

	public Long getLogSizeByResult(Result result, String tid, String startTime,String endTime);

	public boolean checkHosptypeCode(StdCompgroup instance);

	public Pagination getStdCompinfoListByPage(Pagination page);

	public long getStdCompinfoListSizeByPage(Pagination page);

	

	public Object batchGroupAddComp(List<StdCompinfo> list);

	boolean checkCompGroupName(StdCompgroup instance);

	Pagination getStdCompinfoListButHB(Pagination page);

	List<StdCompgroup> getQYCompgroup();
	
	//Pagination getStdCompgroupNoPage(Pagination page);
	
	 void exportExcel(Pagination page,OutputStream os);


}
